<?php

namespace App\Models;
use Overtrue\LaravelLike\Traits\CanBeLiked;
class Pictuer extends Model
{
    use CanBeLiked;
    protected $fillable = ['user_id', 'view_counts', 'up_counts', 'title', 'md5', 'dhash', 'rgb', 'domain', 'path', 'filename', 'ext', 'width', 'height', 'size', 'hd', 'url', 'status'];


    public function tags()
    {
        return $this->belongsToMany(Tag::class, 'pictuer_tag');
    }
}
